﻿<UserControl x:Class="LiveTiss.Guias.UserControls.IdentificacaoProfissional"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:guias="clr-namespace:LiveTiss.Guias"  
    xmlns:uc="clr-namespace:LiveTiss.Guias.UserControls"  
    xmlns:converter="clr-namespace:LiveTiss.Classes.TypeConverter"
    mc:Ignorable="d" x:Name="ucProfissional">
    
    <UserControl.Resources>
        <converter:EnumConverter x:Key="enumConverter"  />
    </UserControl.Resources>
    
    <StackPanel Width="910">
        <Grid Width="890" Height="53" Margin="0,0,6,0">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="0.024*"/>
                <ColumnDefinition Width="0.976*"/>
            </Grid.ColumnDefinitions>
            <StackPanel Grid.ColumnSpan="2" Margin="0" Grid.Row="2" Grid.Column="2">
                <TextBlock TextWrapping="Wrap" Text="{Binding Path=Title, ElementName=ucProfissional, Mode=OneWay}" FontFamily="Segoe UI" FontSize="13.333"/>
                <TextBox Margin="0,6,323,0" MaxLength="70" Text="{Binding Path=Value.nomeProfissional, ElementName=ucProfissional, ValidatesOnDataErrors=True, NotifyOnValidationError=True, Mode=TwoWay}"  />
            </StackPanel>
        </Grid>
        <uc:ConselhoProfissional Value="{Binding Path=Value.conselhoProfissional, ElementName=ucProfissional, ValidatesOnDataErrors=True, NotifyOnValidationError=True, Mode=TwoWay}" />
        <Grid Width="890" Height="53" Margin="0,0,6,0">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="0.024*"/>
                <ColumnDefinition Width="0.976*"/>
            </Grid.ColumnDefinitions>
            <StackPanel Grid.ColumnSpan="2" Margin="0" Grid.Row="2" Grid.Column="2">
                <TextBlock TextWrapping="Wrap" Text="CBO S:" FontFamily="Segoe UI" FontSize="13.333"/>
                <ComboBox Width="280" Margin="0,6,0,0" HorizontalAlignment="Left" SelectedValue="Key" DisplayMemberPath="Value" 
                    ItemsSource="{Binding Path=Value.CBOSItems, ElementName=ucProfissional, Mode=OneWay}"
                    SelectedIndex="{Binding Path=Value.cbos, ElementName=ucProfissional, Converter={StaticResource enumConverter}, ConverterParameter='CBOS', Mode=TwoWay}"/>
            </StackPanel>
        </Grid>
    </StackPanel>
</UserControl>
